﻿<Window x:Class="DTC.Popups.BoxPopup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Упаковка препарата" Height="550" Width="420"
        Style="{StaticResource PopupWindow}" Closing="Window_Closing" 
        Loaded="Window_Loaded">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/TextBlockStyles.xaml"/>
                <ResourceDictionary Source="../Resources/TextEditStyles.xaml"/>
				<ResourceDictionary Source="../Resources/ComboBoxesStyles.xaml"/>
				<ResourceDictionary Source="../Resources/ListBoxStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid Name="MainGrid" Margin="15" >
        <StackPanel>
			<TextBlock Text="Препарат:"/>
            <ComboBox Name="DrugComboBox"
						Margin="5,12,0,0"
						VerticalContentAlignment="Stretch"
						HorizontalContentAlignment="Stretch"
						Width="300"
						IsEditable="True"
                        DisplayMemberPath="Name"
						Style="{StaticResource HighlightedComboBox}"/>
            <TextBlock Text="Производитель:"
						Margin="0,10,0,0"
                       Validation.ValidationAdornerSite="{Binding ElementName=ManufacturerComboBox}"/>
            <ComboBox Name="ManufacturerComboBox"
                      Margin="5,12,0,0"
                      VerticalContentAlignment="Stretch"
                      HorizontalContentAlignment="Stretch"
                      Width="300"
                      IsEditable="True"
                      DisplayMemberPath="Name"/>
            <TextBlock Text="Форма выпуска:"
						Margin="0,15,0,0"/>
            <ComboBox Name="IssueFormComboBox"
						Margin="5,12,0,0"
						VerticalContentAlignment="Stretch"
						HorizontalContentAlignment="Stretch"
						Width="300"
						Style="{StaticResource HighlightedComboBox}"
						IsEditable="True"
                        DisplayMemberPath="Name"
                        SelectionChanged="IssueFormComboBox_SelectionChanged"/>
            <StackPanel Margin="0,20,0,0"
                        Name="UnitValueBlock"
                        Visibility="Collapsed">
                <TextBlock Text="Размер единицы выпуска:"/>
                <TextBox Name="UnitSizeTextBox"
						 Height="21"
                         Width="120"
						 Style="{StaticResource HighlightedTextBoxStyle}"
                         HorizontalAlignment="Left"
                         Margin="35,12,0,11"/>
            </StackPanel>
            <StackPanel Margin="0,15,0,0"
                        Name="UnitCountBlock"
                        Visibility="Collapsed">
                <TextBlock Text="Количество единиц в пачке:"/>
                <TextBox Name="UnitCountTextBox"
                     Width="120"
                     HorizontalAlignment="Left"
                         Style="{StaticResource HighlightedTextBoxStyle}"
                     Height="21" Margin="35,10,5,0"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
